import { request } from '~/api/request'

/** 待借用案件列表 */
export const queryWaitBorrowList = (data: any): any =>
  request('post', '/api/internal/v1/item/borrow/query/waitBorrowCaseList', data)

/** 已借用案件列表 */
export const queryBorrowedList = (data: any): any =>
  request('post', '/api/internal/v1/item/borrow/query/borrowCaseList', data)

/** 待借用案件财物列表 */
export const queryWaitCastItems = (data: any): any =>
  request('post', '/api/internal/v1/item/borrow/query/waitCastItems', data)

/** 已借用案件财物列表 */
export const queryCastItems = (data: any): any => request('post', '/api/internal/v1/item/borrow/query/castItems', data)

/** 待借用申请借用 */
export const handleApplyBorrow = (data: any): any => request('post', '/api/internal/v1/item/manage/applyBorrow', data)

export const handleCancelBorrow = (data: any): any => request('post', '/api/internal/v1/item/manage/cancelBorrow', data)
